if [ $# == 2 ]; then
	echo -n ""
else
	echo "usage: sent_blue.sh  hypothsis  reference > out";
	exit
fi

hypo=$1
ref=$2

l=$(seq 1 1000)

for i in $l
do
	let j=$i-1
	head -${i} $hypo | tail -${j} > __tmp.out
	head -${i} $ref | tail -${j} > __tmp.ans

	/home/swlee4skmt/toolkit/moses/scripts/generic/multi-bleu.perl __tmp.ans < __tmp.out > __tmp.eval 2> __tmp.log
	cat __tmp.eval | grep "BLEU" | awk '{ print $3 }' | sed s/,//g  

	rm -rf __tmp.*

done
